import { createApp, App as IApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vRouter from './utils/router'
import { initSystemColor } from '@/utils/tips'
import { Button, Tab, Tabs, Swipe, SwipeItem, Collapse, CollapseItem, SwipeCell, Search, Icon, Slider, Popup } from 'vant';
import 'vant/lib/index.css';
import 'swiper/swiper.scss';

const { VUE_APP_ENV, VUE_APP_ISAPP } = process.env

const app: IApp = createApp(App);

app.use(store).use(router)
app.use(vRouter)
app.use(Button).use(Tab).use(Tabs).use(Swipe).use(SwipeItem).use(Collapse).use(CollapseItem).use(SwipeCell).use(Search).use(Icon).use(Slider).use(Popup)

console.log('当前环境 >>> ' + VUE_APP_ENV)
console.log('是否app >>> ' + VUE_APP_ISAPP)
/** 初始化系统颜色 */
initSystemColor()

app.mount('#app')


